//
//  ZZDeviceModel.m
//  ZZBlue
//
//  Created by stonesMonkey on 2017/9/19.
//  Copyright © 2017年 stonesMonkey. All rights reserved.
//

#import "ZZDeviceModel.h"

@implementation ZZDeviceModel

-(void)encodeWithCoder:(NSCoder *)aCoder
{
    
    [aCoder encodeBool:NO forKey:@"isConnect"];
    [aCoder encodeBool:self.isClose forKey:@"isClose"];
     [aCoder encodeObject:self.deviceName forKey:@"deviceName"];
    [aCoder encodeObject:self.uuid forKey:@"uuid"];
}

-(instancetype)initWithCoder:(NSCoder *)aDecoder
{
    if (self = [super init]) {
        
        self.isConnect = NO;
        self.isClose = [aDecoder decodeBoolForKey:@"isClose"];;
        self.deviceName = [aDecoder decodeObjectForKey:@"deviceName"];
        self.uuid = [aDecoder decodeObjectForKey:@"uuid"];
    }
    return self;
}


@end
